<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display" %>
<%@ page import="java.util.*"%>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

 <link href="<%= request.getContextPath() + "/css/bloques.css" %>" rel="stylesheet" type="text/css">
<!-- <link href="<%= request.getContextPath() + "/css/table.css" %>" rel="stylesheet" type="text/css">-->
 <script src="<%=request.getContextPath()%>/js/displaytag.js" type="text/javascript"></script>
  <P align="center"></P>
  <form name="frmActivarAtri" action="<%= request.getContextPath() + "/ActivacionCorrecta.do"%>" method="get">
      <%List lista = (List)session.getAttribute("ListaInactivos"); 
      int o =0;%>
      <logic:notPresent name="ListaInactivos"><p align="center" class="titulosenblanco">Lista no esta disponible</p></logic:notPresent>
      <logic:present name="ListaInactivos">
        <table align="center" width="30%" border="0" cellspacing="1" cellpadding="2">
          <% 
          int i=0;
  %>
        <tr>
          <td>
          
          <display:table name="sessionScope.ListaInactivos"  id="listaatri" cellpadding="3" cellspacing="1" style="width:100%" class="bordestable">
                  <display:column headerClass="headerTable" title="Atributo" class="Numero" sortable="true" >
                      <DIV align="center">
                      <bean:write name="listaatri" property="etiqueta"/>
                      </DIV>
                  </display:column>
                  <display:column headerClass="headerTable" title="Activar" class="Numero" sortable="true" >
                      <DIV align="center">
                      <input type="checkbox" name="Activar<%=i%>" value="<bean:write name="listaatri" property="codigo"/>"/>
                      
                      </DIV>
                  </display:column>
                  <%i++;%>
          </display:table>
         </td>
         </tr>
      </table>
      </logic:present>
      
      
      <DIV align="center">
        <br/>
        <P>
          <input type="hidden" name="accion" value="2"/>
          <logic:present name="ListaInactivos">
            <input type="SUBMIT" value="Activar"/>
          </logic:present>
          <%  String codigo = (String)session.getAttribute("codsubpro");%>
        </P>
        <P>
          <a href="<%= request.getContextPath() + "/BuscarAtributo.do?codigo="+codigo+"&accion=2" %>">
            <img src="<%=request.getContextPath() + "/images/b_atras.gif"%>" border="0"/>
          </a>
        </P>
      </DIV>
    </DIV>
    
    
</form>
